<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位</title>
    <style>
        .box1{
            width: 200px;
            height:200px;
            background-color: red;
            position: absolute;
            top: 100px;
            left: 200px
        }
        .box2{
            width: 300px;
            height:300px;
            background-color: rgb(107, 213, 237);
        }
        .box3{
            width: 300px;
            height:300px;
            background-color: rgb(125, 243, 184);
            position: absolute;
            top: 200px;
            left: 300px
        }
    </style>
</head>
<body>
    <p>使用绝对定位会脱离文档流，会出现压盖的存在。每添加一个绝对定位，就会增加一个图层。</p>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
</body>
</html>